package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.player.UserMail;

import java.util.List;
import java.util.Map;

public class UserMailBussiness {

	public static Map<String, UserMail> getUserMailMap(long userId) {
		return DaoHelper.getUserMailDaoImpl().getUserMailMap(userId);
	}

	public static UserMail getUserMailByUid(String mailUid) {
		return DaoHelper.getUserMailDaoImpl().getUserMailByUid(mailUid);
	}

	public static boolean addUserMail(UserMail mail) {
		return DaoHelper.getUserMailDaoImpl().add(mail);
	}

	public static boolean updateUserMail(UserMail userMail) {
		return DaoHelper.getUserMailDaoImpl().update(userMail);
	}

	public static boolean deleteUserMail(String mailUid) {
		return DaoHelper.getUserMailDaoImpl().deleteUserMail(mailUid);
	}

	public static boolean deleteUserMailList(List<String> mailUidList) {
		return DaoHelper.getUserMailDaoImpl().deleteUserMailList(mailUidList);
	}
}
